inspector: Be more careful with dead objects
authorMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2015 17:11:17 +0000 (13:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 25 Oct 2015 17:11:17 +0000 (13:11 -0400)
commitf55e3f7eda1d54d1a87a098822cc5e345b2f36db
tree75a1c005f4cef99e95b03a01939ac5c8272c49aa
parent4305aa1def8289f1e907e1b08b619b5fddf8fd22
inspector: Be more careful with dead objects

gtk_inspector_object_tree_find_object accesses the type information
of the object, so we can't safely use it on an already decaying
object when we get a weak notify. Instead just walk the tree and
compare pointers, that is safe.

https://bugzilla.gnome.org/show_bug.cgi?id=756852
gtk/inspector/object-tree.c